package com.register.service;

import com.register.dao.DepartmentDao;
import com.register.pojo.Department;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service("departmentService")
public class DepartmentService {
    @Autowired
    private DepartmentDao departmentDao;
    //查询全部
    public List<Department> getDepartment(){
        return departmentDao.getDepartment();
    }
}
